package com.axjy.service.impl;

import com.axjy.mapper.SystemconfigMapper;
import com.axjy.pojo.Systemconfig;
import com.axjy.service.SystemconfigService;
import com.axjy.service.vo.Pager;
import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.ui.Model;

import javax.annotation.Resource;
import javax.servlet.http.HttpServlet;
import java.util.List;
import java.util.Map;

/**
 * Created by 00 on 2018/1/30.
 */
@Service("systemconfigService")
@Transactional
public class SystemconfigServiceimpl implements SystemconfigService {
    @Resource
    private SystemconfigMapper symapper;

    @Override
    public Pager peizhishow(Integer offset, Integer limit,Integer peiStatus) {
       Pager p=new Pager();
       p.setRows(symapper.peizhishow(offset, limit, peiStatus));
       p.setTotal(symapper.peiTotal(peiStatus));
       return p;
    }
//
//    @Override
//    public Systemconfig getByid(Integer id) {
//        return symapper.getByid(id);
//    }

    @Override
    public Integer maxid() {
        return symapper.maxid();
    }

    @Override
    public void add(Systemconfig systemconfig) {
        symapper.add(systemconfig);
    }

    @Override
    public void update(Systemconfig systemconfig) {
        symapper.update(systemconfig);
    }

    @Override
    public void del(Map<String,Object> ids) {
        symapper.del(ids);
    }

    @Override
    public void ztisstart(Integer id, Integer isStart) {
        symapper.ztisstart(id, isStart);
    }

    @Override
    public List<Systemconfig> search1() {
        return symapper.search1();
    }

    @Override
    public List<Systemconfig> search2() {
        return symapper.search2();
    }


}
